package com.company.creational.builder_patter.client;

import com.company.creational.builder_patter.builder.ActorBuilder;
import com.company.creational.builder_patter.builder.Angelbulider;
import com.company.creational.builder_patter.director.ActorController;
import com.company.creational.builder_patter.product.Actor;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/8/27 13:55
 **/
public class Client {
    public static void main(String[] args) {
        ActorBuilder actorBuilder;
        actorBuilder = new Angelbulider();
        ActorController actorController = new ActorController();
        Actor actor = actorController.construct(actorBuilder);
        System.out.println("类型: " + actor.getType());
        System.out.println("性别: " + actor.getSex());
        System.out.println("面容: " + actor.getFace());
        System.out.println("服装: " + actor.getCostume());
        System.out.println("发型: " + actor.getHairstyle());
    }
}
